package com.zhoutao123.hephaestus.object.bussiness;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain = true)
public class PageBeanInfo implements Serializable {

  @ApiModelProperty("总条数")
  Long total;

  @ApiModelProperty("总页数")
  Integer pages;

  @ApiModelProperty("当前页数")
  Integer pageNum;

  @ApiModelProperty("当前条数")
  Integer pageSize;

  @ApiModelProperty("当前行索引")
  Integer startRow;

  @ApiModelProperty("当前尾部索引")
  Integer endRow;

  @ApiModelProperty("上一页索引")
  Integer prePage;

  @ApiModelProperty("下一页的索引")
  Integer nextPage;

  @ApiModelProperty("是否是首页")
  Boolean fristPage;

  @ApiModelProperty("是否是尾页")
  Boolean lastPage;

  @ApiModelProperty("有上一页")
  Boolean hasPreviousPage;

  @ApiModelProperty("有下一页")
  Boolean hasNextPage;
}
